package com.design.demo.observer;

/**
 * @author guoliang.li
 * @date 2019/12/27 17:27
 * @description TODO
 */
public class Client {

    public static void main(String[] args) throws InterruptedException {
        Teacher teacher = new Teacher();
        new Student(teacher, "name1");
        new Student(teacher, "name2");
        new Student(teacher, "name3");
        Thread.sleep(2000);
        teacher.setHome("message1");
        teacher.setHome("message2");
        teacher.setHome("message3");
    }
}